<%--
    Document   : Registrazione.jsp
    Created on : 14-apr-2010, 20.10.48
    Author     : Rachid Ouchary, Fabio Strocco, Max Passaghe, Marco Tansini.
--%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8" import="servlet.ServletUtil"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<jsp:include page="header.jsp"/>
<body>
<div class="page_margins">
  <div id="main">
    <div id="col1">
      <div id="col1_content" class="clearfix">
          <jsp:include page="ColonnaDestra.jsp" />
      </div>
    </div>
    <div id="col3">
      <div id="col3_content" class="clearfix">
        <div id="header_title">
          <p class="txHeader">Benvenuto nel sito di Whishlist</p>
          <br/>
        </div>
        <div id="main_content"> <img src="images/div_centrale_top.png" width="526" height="18" />
          <h1>Cerca amici</h1>
          <form action="MainDispatcher?operation=<%= ServletUtil.ACTION_CERCA_AMICI%>" method="post" target="_self">
            <table width="330" class="tableReg">
              <tr>
                <td width="120" class="nomeCampo">Username</td>
                <td width="133"><input name="<%=ServletUtil.PARAM_RIC_USERNAME%>" type="text" value="<%=ServletUtil.getParameter(request, ServletUtil.PARAM_RIC_USERNAME, "") %>" class="txGenerico"/></td>
              </tr>
              <tr>
                <td class="nomeCampo">Nome</td>
                <td><input name="<%=ServletUtil.PARAM_RIC_NOME%>" type="text" value="<%=ServletUtil.getParameter(request, ServletUtil.PARAM_RIC_NOME, "")%>" class="txGenerico"/></td>
              </tr>
              <tr>
                <td class="nomeCampo">Cognome</td>
                <td><input name="<%=ServletUtil.PARAM_RIC_COGNOME%>" type="text" value="<%=ServletUtil.getParameter(request, ServletUtil.PARAM_RIC_COGNOME, "")%>" class="txGenerico"/></td>
              </tr>
              <tr>
                <td class="nomeCampo">Email</td>
                <td><input name="<%=ServletUtil.PARAM_RIC_EMAIL%>" type="text" value="<%=ServletUtil.getParameter(request, ServletUtil.PARAM_RIC_EMAIL, "")%>" class="txGenerico"/></td>
              </tr>
              <%if(ServletUtil.isLogged(session)){%>
                  <tr>
                    <td class="nomeCampo">Solo amici</td>
                    <td><input type="checkbox" class="cbGenerico" name="<%= ServletUtil.PARAM_CERCA_AMICI%>" <%= (request.getParameter(ServletUtil.PARAM_CERCA_AMICI) != null ? "checked" : "") %>/></td>
                  </tr>
              <%}%>
              <tr>
                <td class="nomeCampo">&nbsp;</td>
                <td class="nomeCampo"><input name="cerca" type="image" value="cerca" src="images/search.png" alt="Cerca" /></td>
              </tr>
            </table>
          </form>
          <%if(request.getAttribute(ServletUtil.PARAM_LISTA_RICERCA) != null) { %>
          <jsp:include page="UserList.jsp"/>
          <%}%>
          <img src="images/div_centrale_bottom.png" width="526" height="12" /> </div>
      </div>
      <!-- IE Column Clearing -->
      <div id="ie_clearing"> &#160; </div>
    </div>
  </div>
  <jsp:include page="Footer.jsp"/>
</div>
</body>
</html>
